package com.itmd.dao;

import com.itmd.domain.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {

    @Select("select * from sys_user_role ur,sys_role r where ur.uid=#{uid} AND r.id=ur.roleid")
    List<Role> findRoleByUserid(Integer uid);
}
